package com.vegetable.modules.entity.dashboard;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 库存预警数据VO
 *
 * @author qoder
 * @since 2024-01-01
 */
@Data
@ApiModel(value = "StockAlertVO", description = "库存预警数据")
public class StockAlertVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品ID")
    private Long commodityId;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "规格ID")
    private Long specsId;

    @ApiModelProperty(value = "规格名称")
    private String specsName;

    @ApiModelProperty(value = "当前库存数量")
    private BigDecimal currentStock;

    @ApiModelProperty(value = "预警阈值")
    private BigDecimal alertThreshold;

    @ApiModelProperty(value = "预警级别(1:轻微 2:严重 3:紧急)")
    private Integer alertLevel;

    @ApiModelProperty(value = "预警级别名称")
    private String alertLevelName;

}